package com.hhxy.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author ghp
 * @date 2023/4/30
 * @title
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "友链信息传输对象")
public class LinkDto {
    /**
     * 友链id
     */
    @ApiModelProperty(value = "友链ID", dataType = "Long", required = true)
    private Long id;
    /**
     * 友链名称
     */
    @ApiModelProperty(value = "友链名", required = true)
    @NotBlank(message = "友链名不能为空")
    private String name;
    /**
     * 友链描述
     */
    @ApiModelProperty(value = "友链描述")
    private String description;
    /**
     * 友链log
     */
    @ApiModelProperty(value = "友链log", required = true)
    @NotBlank(message = "友链log不能为空")
    private String logo;
    /**
     * 友链地址
     */
    @ApiModelProperty(value = "友链地址", required = true)
    @NotBlank(message = "友链地址不能为空")
    private String address;
    /**
     * 友链状态
     */
    @ApiModelProperty(value = "友链状态", notes = "0-审核通过 1-审核未通过 2-未审核")
    @NotBlank(message = "友链状态不能为空")
    private String status;
}
